home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 22
/
CU Amiga Magazine's Super CD-ROM 22 (1998)(EMAP Images)(GB)[!][issue 1998-05].iso
/
PowerPC
/
Programming
/
PPCSmallEiffel
/
bin_c
/
compile_to_c42.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-01-16
|
3KB
|
81 lines
/*
-- ANSI C code generated by :
-- SmallEiffel The GNU Eiffel Compiler -- Release (- 0.82) --
-- Copyright (C), 1994-98 - LORIA - UHP - CRIN - INRIA - FRANCE --
-- Dominique COLNET and Suzanne COLLIN - colnet@loria.fr --
-- http://www.loria.fr/SmallEiffel --
*/
#include "compile_to_c.h"
void r620runnable_from_current(T620* C,T0* a1,T0* a2){
T0* _n2=NULL;
T0* _n1=NULL;
int _i=0;
C->_start_position=(((T620*)((T620*)a1)))->_start_position/*4*/;
C->_list=(((T620*)((T620*)a1)))->_list/*8*/;
C->_current_type=a2;
C->_flat_list=r733twin(((T733*)((((T620*)((T620*)a1)))->_flat_list/*12*/)));
_i=(((T733*)((T733*)((((T620*)C))->_flat_list/*12*/))))->_upper/*12*/;
while (!((_i)==(0))) {
_n1=r733item(((T733*)((((T620*)C))->_flat_list/*12*/)),_i);
_n2=r39to_runnable(((T39*)_n1),a2);
/*IF*/if ((_n2)==((void*)(NULL))) {
r620error((((T39*)((T39*)_n1)))->_start_position/*16*/,((T0*)ms3_535));
}
/*FI*//*[IRF3.6put*/{T733* C1=((T733*)((((T620*)C))->_flat_list/*12*/));
T0* b1=_n2;
int b2=_i;
((((T733*)C1))->_storage/*4*/)[(b2)-((((T733*)C1))->_lower/*16*/)]=(b1);
}/*]*/
_i=(_i)-(1);
}
}
void r620initialize_expanded(T620* C){
T0* _rf3=NULL;
T0* _t=NULL;
int _i=0;
_i=/*(IRF4.6count*/(((T733*)((T733*)((((T620*)C))->_flat_list/*12*/))))->_upper/*12*//*)*/;
while (!((_i)==(0))) {
_t=X291run_type(r620type(C,_i));
/*IF*/if (X291is_expanded(_t)) {
/*IF*/if (!(X291is_basic_eiffel_expanded(_t))) {
_rf3=X291expanded_initializer(_t);
/*IF*/if ((_rf3)!=((void*)(NULL))) {
r324expanded_writable(((T324*)(oBC364cpp)),_rf3,/*(IRF4.6name*/r733item(((T733*)((((T620*)C))->_flat_list/*12*/)),_i)/*)*/);
}
/*FI*/}
/*FI*/}
/*FI*/_i=(_i)-(1);
}
}
void r620add_last(T620* C,T0* a1){
T0* _n2=NULL;
int _i=0;
_i=1;
while (!((r733item(((T733*)((((T620*)C))->_flat_list/*12*/)),_i))==((void*)(NULL)))) {
_n2=r733item(((T733*)((((T620*)C))->_flat_list/*12*/)),_i);
/*IF*/if (((((T39*)((T39*)_n2)))->_to_string/*12*/)==((void*)((((T39*)((T39*)a1)))->_to_string/*12*/))) {
r683add_position((((T39*)((T39*)a1)))->_start_position/*16*/);
r683add_position((((T39*)((T39*)_n2)))->_start_position/*16*/);
/*[IRF3.6fatal_error*/{T0* b1=((T0*)ms2_535);
r683fatal_error(((T683*)(oBC364eh)),b1);
}/*]*/
}
/*FI*/_i=(_i)+(1);
}
/*[IRF3.6put*/{T733* C1=((T733*)((((T620*)C))->_flat_list/*12*/));
T0* b1=a1;
int b2=_i;
((((T733*)C1))->_storage/*4*/)[(b2)-((((T733*)C1))->_lower/*16*/)]=(b1);
}/*]*/
/*[IRF3.3set_rank*/((((T39*)(((T39*)a1))))->_rank)=(_i);
/*]*/
}
void r620error(T0* a1,T0* a2){
r683add_position(a1);
r683error(((T683*)(oBC364eh)),a2);
}
/*No:LOCAL_VAR_LIST.count*/
/*No:LOCAL_VAR_LIST.fatal_error*/
/*No:LOCAL_VAR_LIST.flat_list*/